@Inject('$http')
class NoticeService {

  save(staff) {
    return this.$http.post('/api/v1/notice/add', staff);
  }

  get(id) {
    return this.$http({
      url: '/api/v1/notice/get',
      method: 'GET',
      params: id,
    });
  }

  query(param) {
    return this.$http.post('/api/v1/notice/query', param);
  }

  /**
   * @param  {Array<String>}
   * @return {[type]}
   */
  delete(ids) {
    return this.$http.post('/api/v1/notice/batchDelete', ids);
  }
}

export default NoticeService;
